package com.igame.Service.impl;

import com.igame.Service.GoodsImgService;
import com.igame.common.Result;
import com.igame.entity.GoodsImg;
import com.igame.mapper.GoodsImgMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class GoodsImgImpl implements GoodsImgService {

    @Autowired
    GoodsImgMapper goodsImgMapper;

    @Override
    public Result<List<GoodsImg>> getGoodsImg(Integer id) {
        return Result.success(goodsImgMapper.getGoodsById(id));
    }
}
